using System;
using System.Data;
using System.ComponentModel;
using System.Reflection;
using System.Collections.Generic;

namespace DataObject.Model
{
	[Serializable]
	public class GuestDTO : DTOBase
	{
		#region Property Active

		private bool _active;

		/// <summary>
		///  Property Active
		/// <summary>
		public bool Active
		{
			get
			{
				return _active;
			}

			set
			{
				if (_active != value)
				{
					this.OnActiveChanging(value);
					_active = value;
					this.OnActiveChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property AddressLine1

		private string _addressLine1;

		/// <summary>
		///  Property AddressLine1
		/// <summary>
		public string AddressLine1
		{
			get
			{
				return _addressLine1;
			}

			set
			{
				if (_addressLine1 != value)
				{
					this.OnAddressLine1Changing(value);
					_addressLine1 = value;
					this.OnAddressLine1Changed();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property AddressLine2

		private string _addressLine2;

		/// <summary>
		///  Property AddressLine2
		/// <summary>
		public string AddressLine2
		{
			get
			{
				return _addressLine2;
			}

			set
			{
				if (_addressLine2 != value)
				{
					this.OnAddressLine2Changing(value);
					_addressLine2 = value;
					this.OnAddressLine2Changed();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property City

		private string _city;

		/// <summary>
		///  Property City
		/// <summary>
		public string City
		{
			get
			{
				return _city;
			}

			set
			{
				if (_city != value)
				{
					this.OnCityChanging(value);
					_city = value;
					this.OnCityChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property CompanyName

		private string _companyName;

		/// <summary>
		///  Property CompanyName
		/// <summary>
		public string CompanyName
		{
			get
			{
				return _companyName;
			}

			set
			{
				if (_companyName != value)
				{
					this.OnCompanyNameChanging(value);
					_companyName = value;
					this.OnCompanyNameChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property CountryID

		private int _countryID;

		/// <summary>
		///  Property CountryID
		/// <summary>
		public int CountryID
		{
			get
			{
				return _countryID;
			}

			set
			{
				if (_countryID != value)
				{
					this.OnCountryIDChanging(value);
					_countryID = value;
					this.OnCountryIDChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property Email

		private string _email;

		/// <summary>
		///  Property Email
		/// <summary>
		public string Email
		{
			get
			{
				return _email;
			}

			set
			{
				if (_email != value)
				{
					this.OnEmailChanging(value);
					_email = value;
					this.OnEmailChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property Fax

		private string _fax;

		/// <summary>
		///  Property Fax
		/// <summary>
		public string Fax
		{
			get
			{
				return _fax;
			}

			set
			{
				if (_fax != value)
				{
					this.OnFaxChanging(value);
					_fax = value;
					this.OnFaxChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property FirstName

		private string _firstName;

		/// <summary>
		///  Property FirstName
		/// <summary>
		public string FirstName
		{
			get
			{
				return _firstName;
			}

			set
			{
				if (_firstName != value)
				{
					this.OnFirstNameChanging(value);
					_firstName = value;
					this.OnFirstNameChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property GuestID

		private string _guestID;

		/// <summary>
		///  Property GuestID
		/// <summary>
		public string GuestID
		{
			get
			{
				return _guestID;
			}

			set
			{
				if (_guestID != value)
				{
					this.OnGuestIDChanging(value);
					_guestID = value;
					this.OnGuestIDChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property GuestType

		private int _guestType;

		/// <summary>
		///  Property GuestType
		/// <summary>
		public int GuestType
		{
			get
			{
				return _guestType;
			}

			set
			{
				if (_guestType != value)
				{
					this.OnGuestTypeChanging(value);
					_guestType = value;
					this.OnGuestTypeChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property Lastname

		private string _lastname;

		/// <summary>
		///  Property Lastname
		/// <summary>
		public string Lastname
		{
			get
			{
				return _lastname;
			}

			set
			{
				if (_lastname != value)
				{
					this.OnLastnameChanging(value);
					_lastname = value;
					this.OnLastnameChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property Note

		private string _note;

		/// <summary>
		///  Property Note
		/// <summary>
		public string Note
		{
			get
			{
				return _note;
			}

			set
			{
				if (_note != value)
				{
					this.OnNoteChanging(value);
					_note = value;
					this.OnNoteChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property Tel

		private string _tel;

		/// <summary>
		///  Property Tel
		/// <summary>
		public string Tel
		{
			get
			{
				return _tel;
			}

			set
			{
				if (_tel != value)
				{
					this.OnTelChanging(value);
					_tel = value;
					this.OnTelChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property Title

		private string _title;

		/// <summary>
		///  Property Title
		/// <summary>
		public string Title
		{
			get
			{
				return _title;
			}

			set
			{
				if (_title != value)
				{
					this.OnTitleChanging(value);
					_title = value;
					this.OnTitleChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property UserId

		private Guid? _userId;

		/// <summary>
		///  Property UserId
		/// <summary>
		public Guid? UserId
		{
			get
			{
				return _userId;
			}

			set
			{
				if (_userId != value)
				{
					this.OnUserIdChanging(value);
					_userId = value;
					this.OnUserIdChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property Website

		private string _website;

		/// <summary>
		///  Property Website
		/// <summary>
		public string Website
		{
			get
			{
				return _website;
			}

			set
			{
				if (_website != value)
				{
					this.OnWebsiteChanging(value);
					_website = value;
					this.OnWebsiteChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Property ZipCode

		private string _zipCode;

		/// <summary>
		///  Property ZipCode
		/// <summary>
		public string ZipCode
		{
			get
			{
				return _zipCode;
			}

			set
			{
				if (_zipCode != value)
				{
					this.OnZipCodeChanging(value);
					_zipCode = value;
					this.OnZipCodeChanged();
					OnChanged();
				}
			}
		}

		#endregion

		#region Extensibility Method Declarations

		protected virtual void OnActiveChanging(bool active) { }
		protected virtual void OnActiveChanged() { }
		protected virtual void OnAddressLine1Changing(string addressLine1) { }
		protected virtual void OnAddressLine1Changed() { }
		protected virtual void OnAddressLine2Changing(string addressLine2) { }
		protected virtual void OnAddressLine2Changed() { }
		protected virtual void OnCityChanging(string city) { }
		protected virtual void OnCityChanged() { }
		protected virtual void OnCompanyNameChanging(string companyName) { }
		protected virtual void OnCompanyNameChanged() { }
		protected virtual void OnCountryIDChanging(int countryID) { }
		protected virtual void OnCountryIDChanged() { }
		protected virtual void OnEmailChanging(string email) { }
		protected virtual void OnEmailChanged() { }
		protected virtual void OnFaxChanging(string fax) { }
		protected virtual void OnFaxChanged() { }
		protected virtual void OnFirstNameChanging(string firstName) { }
		protected virtual void OnFirstNameChanged() { }
		protected virtual void OnGuestIDChanging(string guestID) { }
		protected virtual void OnGuestIDChanged() { }
		protected virtual void OnGuestTypeChanging(int guestType) { }
		protected virtual void OnGuestTypeChanged() { }
		protected virtual void OnLastnameChanging(string lastname) { }
		protected virtual void OnLastnameChanged() { }
		protected virtual void OnNoteChanging(string note) { }
		protected virtual void OnNoteChanged() { }
		protected virtual void OnTelChanging(string tel) { }
		protected virtual void OnTelChanged() { }
		protected virtual void OnTitleChanging(string title) { }
		protected virtual void OnTitleChanged() { }
		protected virtual void OnUserIdChanging(Guid? userId) { }
		protected virtual void OnUserIdChanged() { }
		protected virtual void OnWebsiteChanging(string website) { }
		protected virtual void OnWebsiteChanged() { }
		protected virtual void OnZipCodeChanging(string zipCode) { }
		protected virtual void OnZipCodeChanged() { }

		#endregion

	}
}
